//
//  EffectViewController.h
//  OpenGLGame
//
//  Created by Nguyen Cong Huy on 11/23/12.
//  Copyright (c) 2012 UIT. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ImageMainMenuBarView.h"
#import "ImageActionBarView.h"
#import "EAGLView.h"
#import "CropView.h"
#import "CropViewController.h"

@protocol EffectViewControllerDelegate;

@interface EffectViewController : UIViewController<ImageMenuBarViewDelegate, ImageActionBarViewDelegate, EAGLViewDelegate, UIImagePickerControllerDelegate, UINavigationControllerDelegate, CropViewControllerDelegate>{
    bool isCanWriteComment;
    BOOL isHiddenEffectBar;
    BOOL isCoverImage;
    
    CGPoint                 oldLocation;
    
    bool isEnableEffect;
    UIImage* inputImg;
    
    id<EffectViewControllerDelegate> delegate;
}

@property(nonatomic) bool isEnableEffect;
@property(nonatomic, retain) UIImage* inputImg;
@property(nonatomic, assign) id<EffectViewControllerDelegate> delegate;

-(void)addNewActionBarEffect;
-(void)addNewActionBarMenu;
-(void)addNewActionBarMenuNoEffect;
-(void)addNewActionBarFrame;
- (void)handlePanTap:(UIPanGestureRecognizer *)recognizer;
-(void)updateCropRect:(CGRect)rectView;
-(void)saveFile:(NSString*)filePath;
- (void)inputImage:(UIImage*)image;
- (void)inputImage:(UIImage*)image isFirstTime:(bool)isFristTime;
-(void)didFinishRotate:(id)sender;
- (void) didChooseFriendTap;

@end

@protocol EffectViewControllerDelegate <NSObject>

@optional
- (void) didProcessImage:(UIImage*)image sender:(EffectViewController*)sender;

@end

